package cn.wolfcode.web.feign;


import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OperateIntergralVo;
import cn.wolfcode.web.feign.fallback.IntegralFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "intergral-service",fallback = IntegralFeignFallBack.class)
public interface IntegralFeignApi {

    @RequestMapping("/intergral/alipayOnIntergral")
    Result<Boolean> alipayOnIntergral(@RequestBody OperateIntergralVo vo);

    @RequestMapping("/intergral/refundOnIntegral")
    Result<Boolean> refundOnIntegral(@RequestBody OperateIntergralVo vo);
}
